# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         demo1111
# Description:
# Author:       $赵怡蕾
# Date:         2019/4/3
#-------------------------------------------------------------------------------

import re

# 完全匹配
# m = re.match('hello','hello')
# if m is not None:
#     print(m.group())
# print(m.__class__.__name__)

# 没有匹配
# m = re.match('hello','world')
# if m is not None:
#     print(m.group())
# print(m)

#
m = re.match('hell','hello world hello')
if m is not None:
    print(m.group())
print(m)